Fix accidental regression of 'summary' message to text-only.
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 18 Feb 2009 05:17:09 +0000 (05:17 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 18 Feb 2009 05:17:09 +0000 (05:17 +0000)
includes/EditPage.php

index 54f8530..1f311c1 100644 (file)
@@ -1344,7 +1344,7 @@ class EditPage {
                        $commentsubject = '';
                        if ( !$wgRequest->getBool( 'nosummary' ) ) {
                                $commentsubject =
-                                       Xml::label( $subject, 'wpSummary' );
+                                       Xml::element( 'label', array( 'for' => 'wpSummary' ), $subject );
                                $commentsubject =
                                        Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $commentsubject );
                                $commentsubject .= '&nbsp;';
@@ -1365,7 +1365,7 @@ class EditPage {
                } else {
                        $commentsubject = '';
 
-                       $editsummary = Xml::label( $summary, 'wpSummary' );
+                       $editsummary = Xml::element( 'label', array( 'for' => 'wpSummary' ), $summary );
                        $editsummary =
                                Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $editsummary );